# define _CRT_SECURE_NO_WARNINGS 1
# include<stdio.h>
int cfkj(int n)
{	
	int i = 0;
	int j = 0;
	
	
	for (i=1; i <= n; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf("%d*%d=%2d  3", i, j, i * j);
		}
		printf("\n");
	}

}
int main()
{
	int n = 0;
	scanf("%d", &n);
	cfkj(n);

	return 0;
}